package BTChat;

import java.util.Date;
public class message
{
    public String text;
    public String nick;
    public Date time;
    public message(String _text, String _nick, Date _time)
    {
	this.text = _text;
	this.nick = _nick;
	this.time = _time;
    }
    
    public String show()
    {
	//time.
	String s = time.toString();
	s = s.substring(11, 19);
	return nick + "(" + s + ")\n" + this.text + "\n";
    }
    
    public String createFrame()
    {
	return nick.length() + nick + time + text.length() + text;
    }
}
